<?php 
if(isset($_POST['api'])):
include('../../../wp-blog-header.php');
$my_id = $_POST['pageid'];
$post = get_post($my_id, ARRAY_A);
$title = $post['post_title'];
$cont = $post['post_content'];
?>
<h1 class="titlehead"><?php echo $title;?></h1>
<?php echo $cont;?>
<div class="clear"> </div>
<?php endif; ?>
